<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <input id="c-id" data-rule="required" class="form-control" size="50" readonly name="row[id]" type="hidden" value="{$row.id}">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">*店铺封面图:</label>
        <div class="col-xs-12 col-sm-6">
            <div class="input-group">
                <input id="c-logo" data-rule="required" readonly class="form-control" size="50" name="row[cover_img]" type="hidden" value="{$row.cover_img??''}">
                <div class="input-group-addon no-border no-padding" style="display: none">
                    <span><button type="button" id="plupload-logo" class="btn btn-danger plupload" data-url="shop/upload"  data-input-id="c-logo" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-logo"></button></span>
                </div>
                <span class="msg-box n-right" for="c-logo"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-logo"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">*轮播图:</label>
        <div class="col-xs-12 col-sm-6">
            <div class="input-group">
                <input id="c-images" data-rule="required" class="form-control" size="50" readonly name="row[images]" type="hidden" value="{$row.images??''}">
                <div class="input-group-addon no-border no-padding" style="display: none">
                    <span><button type="button" id="plupload-images" class="btn btn-danger plupload" data-url="shop/upload" data-input-id="c-images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-images"><i class="fa fa-upload"></i> 上传</button></span>
                    <!--                    <span><button type="button" id="fachoose-images" class="btn btn-primary fachoose" data-url="shop/upload" data-input-id="c-images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> 选择</button></span>-->
                </div>
                <span class="msg-box n-right" for="c-images"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-images"></ul>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">*品牌:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-brand" data-rule="required" readonly class="form-control" name="row[brand]" type="text" value="{$row.brand.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">*系列:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-series" data-rule="required" readonly class="form-control" name="row[series]" type="text" value="{$row.series.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">*价格:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" data-rule="required" readonly class="form-control" name="row[price]" type="text" value="{$row.price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">*首付:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-down_payment" data-rule="required" readonly class="form-control" name="row[down_payment]" type="text" value="{$row.down_payment|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">*车龄:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-car_age" data-rule="required" readonly class="form-control" name="row[car_age]" type="text" value="{$row.car_age|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">*里程:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mileage" data-rule="required" readonly class="form-control" name="row[mileage]" type="text" value="{$row.mileage|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">*能源类型:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-car_type" data-rule="required" readonly class="form-control" name="row[car_type_name]" type="text" value="{$row.car_type_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">*级别:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-level" data-rule="required" readonly class="form-control" name="row[level]" type="text" value="{$row.level|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">*排放标准:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-discharge" data-rule="required" readonly class="form-control" name="row[discharge]" type="text" value="{$row.discharge|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">*变速箱:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-gearbox" data-rule="required" readonly class="form-control" name="row[gearbox]" type="text" value="{$row.gearbox|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">*排量:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-swept_volume" data-rule="required" readonly class="form-control" name="row[swept_volume]" type="text" value="{$row.swept_volume|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">*保险到期日期:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-insurance_expires" data-rule="required" readonly class="form-control" name="row[insurance_expires]" type="text" value="{$row.insurance_expires|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">*过户次数:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-transfer_num" data-rule="required" readonly class="form-control" name="row[transfer_num]" type="text" value="{$row.transfer_num|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">*联系电话:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-phone" class="form-control" readonly data-rule="required" name="row[phone]" type="text" value="{$row.phone|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">*地区:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="form-inline" data-toggle="cxselect" data-selects="province,city,areas">
                <select class="province form-control" readonly name="row[province]" data-url="ajax/area" data-value="{$row.province ?? ''}"></select>
                <select class="city form-control" readonly name="row[city]" data-query-name="province" data-url="ajax/area" data-value="{$row.city ?? ''}"></select>
                <select class="areas form-control" readonly name="row[districts]" data-query-name="city" data-url="ajax/area" data-value="{$row.districts ?? ''}"></select>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">*详细地址:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-address" class="form-control" readonly data-rule="required" name="row[address]" type="text" value="{$row.address|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">*详情:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea class="form-control editor" id="detail" readonly name="row[detail]" cols="90" rows="50">{$row.detail|htmlentities}</textarea>
        </div>
    </div>
</form>
